package router

import (
	"github.com/gin-gonic/gin"
	"go-api/app/global"
	"go-api/internal/response"
)

func publicRouter(g *global.Global, e *gin.Engine, cs *Controller) {

	router := e.Group("/public")
	{
		//v1版本
		v1Router := router.Group("/v1")
		{
			//设备相关
			exampleRouter := v1Router.Group("/example")
			{
				exampleRouter.GET("info", response.ApiHandleConvert(cs.Example.Info()))
			}
		}

	}
}
